class AddIndexToWorks < ActiveRecord::Migration
  def self.up
    add_index :works, :wid, :unique => true  
  end

  def self.down
    remove_index :works, :wid
  end
end
